﻿using FPSO.Models.TagMapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPSO.Models.ViewModel.TaskManage
{
    /// <summary>
    /// 船舶的实时状态，
    /// </summary>
    public class ShipTankSnapState
    {
        public ShipTankSnapState()
        {
            tankStatesDic = new Dictionary<string, TankStates>();
        }

        private Dictionary<string, TankStates> tankStatesDic;

        public void AddTankStates(string tankId, TankStates tankStates)
        {
            tankStatesDic.Add(tankId, tankStates);
        }

        public TankStates GetTankStates(string tankId)
        {
            if (tankStatesDic.ContainsKey(tankId))
            {
                return tankStatesDic[tankId];
            }
            return null;
        }
    }
}
